<template>
    <div>
        cs：<input type="text" v-model="cs">
        <button @click="get_request">提交</button>
    </div>
</template>



<script>
export default {
    data(){
        return{
            cs:'',
        }
    },
    methods: {
        // 提交
        get_request(){
            this.axios.get('http://localhost:8000/login/',{params:{cs:this.cs}}).then(res=>{
                console.log(res)
                if(res.data.code==200){
                    alert(res.data.cs)
                }
            })
        }
    },
}
</script>